import request from '@/utils/request'

// 查询CMSP列表
export function listCmsp(query) {
  return request({
    url: '/admin/cmsp/list',
    method: 'get',
    params: query
  })
}

// 查询CMSP详细
export function getCmsp(id) {
  return request({
    url: '/admin/cmsp/' + id,
    method: 'get'
  })
}

// 新增CMSP
export function addCmsp(data) {
  return request({
    url: '/admin/cmsp',
    method: 'post',
    data: data
  })
}

// 修改CMSP
export function updateCmsp(data) {
  return request({
    url: '/admin/cmsp',
    method: 'put',
    data: data
  })
}

// 删除CMSP
export function delCmsp(id) {
  return request({
    url: '/admin/cmsp/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
